<?php

use yii\db\Migration;

/**
 * Class m171122_034539_alter_package_and_project_tables
 */
class m171122_034539_alter_package_and_project_tables extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('package_transfer', 'position', 'string(255) not null comment "职位" ');
        $this->addColumn('package_transfer', 'remark', 'text comment "备注" ');
        $this->addColumn('package_initiation', 'leader', 'string(255) not null comment "资产包负责人" after `pass_date` ');
        $this->alterColumn('project_pre_evaluation_seal', 'mortgage_id', 'string(255) not null comment "抵押本息信息" ');
        $this->addColumn('project_investigation_lawsuit', 'stakeholder_id', 'bigInt(20) not null comment "干系人及资产信息" ');
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
//        echo "m171122_034539_alter_package_and_project_tables cannot be reverted.\n";

//        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171122_034539_alter_package_and_project_tables cannot be reverted.\n";

        return false;
    }
    */
}
